home *** CD-ROM | disk | FTP | other *** search
- /*
- File: QTICSamplePanle.h
-
- Contains: Header for QTIC Sample Panel.
-
- Written by: Dino Tang
-
- Copyright: © 1996-1997 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <1> 04/25/97 DT First created.
-
- To Do:
-
- */
-
- #ifndef __QTICSamplePanel__
- #define __QTICSamplePanel__
-
- #ifndef __QTICPUBLICPANEL__
- #include <QTICPublicPanel.h>
- #endif
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if GENERATINGPOWERPC
- #pragma options align=mac68k
- #endif
-
- #ifdef __CFM68K__
- #pragma lib_export on
- #endif
-
- /* ------------------------------------------------------------------------- */
-
- #define kQTICPanelVersion 0x00010001
-
- #define kDLOG_ABOUT -300
- #define kSTR_MENUCONNECTED -302
- #define kSTR_MENUNOTCONNECTED -303
-
- // Structs.
- typedef struct {
- short stuff;
- } SharedGlobals;
-
- typedef struct {
- // Component stuff
- ComponentInstance delegate; // keep track who we are delegating it to.
- ComponentInstance self; // self instance needed if targeted.
- ComponentInstance controls; // need to know where controls component is.
- QTICActionFilterWithRefConUPP callback;
-
- Str255 menuStrConnected;
- Str255 menuStrNotConnected;
- WindowRef window;
- } PrivateGlobals;
-
- // Function prototypes.
- pascal ComponentResult QTICSAMPLEPANEL(ComponentParameters *params,char **storage);
-
- /* ------------------------------------------------------------------------- */
-
- #ifdef __CFM68K__
- #pragma lib_export off
- #endif
-
- #if GENERATINGPOWERPC
- #pragma options align=reset
- #endif
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif /* QTICSamplePanel */